package cn.fbs.service;

import cn.fbs.dao.dm.DMCodeCategoryTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@EnableScheduling
@Component
public class TimeSchedule {

    @Autowired
    private DMCodeCategoryTypeMapper mapper;
    @Scheduled(cron = "1 0 0 * * ?")
//    @Scheduled(cron ="10 * * * * ?" )
    public void resetBm(){
        mapper.resetBm();
    }
}
